package com.shortlink.openserver.remote;

import com.shortlink.common.base.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 短链接映射远程服务
 *
 * @author wp
 */
@FeignClient(
        name = "${shortlink.service-name.core:shortlink-core}",
        contextId = "shortLinkMapper"
)
public interface ShortLinkMapperRemoteService {
    @GetMapping("/api/shortlink/mapper/origin")
    Result<String> getOriginByShortLink(@RequestParam("domain") String domain, @RequestParam("shortUri") String shortUri);
}
